﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using System.Xml;

namespace XNAGame_Lab1
{
    public class Sun : GameStrategy
    {
        
        public Sun(ContentManager content, List<string> strTexture, int nSprites, Vector2 topleft, Vector2 size)
            : base(content, strTexture, nSprites, topleft, size)
        {
            Cost = 0;
        }

        public Sun(ContentManager content, string refix, int nSprites, Vector2 topleft, Vector2 size)
            : base(content, refix, nSprites, topleft, size)
        {
            Cost = 0;
   
        }

        public Sun(ContentManager content, string strXML)
            : base(content, strXML)
        {
            Cost = 0;
   
        }
        public override void Update(GameTime gameTime)
        {
            int temp = (int)(gameTime.TotalGameTime.Milliseconds / NomalDelay) ;

            if (temp%100==0)
            {
               
                Cost++;
            }
            base.Update(gameTime);
        }
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            

            base.Draw(gameTime, spriteBatch);
        }
    }
}
